package com.fuyao.cloud.common.biz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 *
 */
@EqualsAndHashCode(callSuper = true)
@Data
public abstract class PersistableEntity<ID> extends Model<PersistableEntity<ID>> {

	@TableId(type = IdType.ASSIGN_ID)
	@ApiModelProperty(value="主键Id")
	private ID id;
}
